<form name="orgForm" class="system-form-cont" novalidate>
    <div class="modal-header">
        <h4 class="modal-title" ng-if="!vm.isEdit">添加组织</h4>
        <h4 class="modal-title" ng-if="vm.isEdit">编辑组织</h4>
    </div>
    <div class="modal-body">
        <div class="form-group height-60">
            <label for="regionName">组织名称</label>
            <input type="text" class="form-control" name="regionName" ng-model="vm.data.regionName" ng-blur="vm.checkValid(orgForm.regionName)" ng-keyup="vm.checkSame()" ng-class="{error: orgForm.regionName.$invalid && !orgForm.regionName.$pristine}" id="regionName" required placeholder="组织名称" />
            <span class="error" ng-show="orgForm.regionName.$invalid && !orgForm.regionName.$pristine">组织名称不能为空</span>
        </div>
        <div class="form-group height-60">
            <label for="statusCd">状态</label>
            <select ng-model="vm.data.statusCd" name="statusCd" ng-options="k as v for (k, v) in vm.status" ng-change="vm.checkValid(orgForm.statusCd)" ng-class="{error: orgForm.statusCd.$invalid && !orgForm.statusCd.$pristine}" id="statusCd" required class="form-control" >
                <option value="">请选组织状态</option>
            </select>
            <span class="error" ng-show="orgForm.statusCd.$invalid && !orgForm.statusCd.$pristine">组织状态不能为空</span>
        </div>
        <div class="form-group">
            <label for="regionDesc">组织描述</label>
            <textarea class="form-control" id="regionDesc" ng-model="vm.data.regionDesc" cols="30" rows="5" placeholder="组织描述"></textarea>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" ng-click="vm.save()" class="btn btn-primary" ng-disabled="orgForm.$invalid || vm.isSame"><span ng-show="vm.submitting"><i class="fa fa-spinner fa-spin"></i></span>保存</button>
        <button ng-click="vm.cancel()" type="button" class="btn btn-default cancel">取消</button>
    </div>
</form>